/**
 * Copyright &copy; 2012-2014 <a href="https://github.com/thinkgem/jeesite">JeeSite</a> All rights reserved.
 */
package com.jims.master.modules.sync.dao;

import com.jims.master.common.persistence.CrudDao;
import com.jims.master.common.persistence.annotation.MyBatisDao;
import com.jims.master.modules.sync.entity.Diagnosis;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * 诊断DAO接口
 * @author xueyx
 * @version 2017-11-20
 */
@MyBatisDao
public interface DiagnosisDao extends CrudDao<Diagnosis> {

    public List<Diagnosis> getByVisitId(Diagnosis diagnosis);

    public List<Diagnosis>  findPathologyList(@Param("visitId") String visitId);

    /***
     * 电子病历记录诊断
     * @param id
     * @return
     */
    public List<Diagnosis>  findEmrDiagnosisList(@Param("id") String id);

    /***
     * 电子病历门诊记录诊断
     * @param clinicId
     * @return
     */
    public List<Diagnosis> findListForClinic(@Param("clinicId") String clinicId);

    public int deleteDiagnosis(@Param("id") String id);
}